﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/UI/SiteUI.Master" AutoEventWireup="true" CodeBehind="ActiveListCodes.aspx.cs" Inherits="WebUI.Form.ActiveListCodes" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="//netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
     <script>

         $(function () {
             $("#bannertable tr td:eq(7)").css("background-color", "#37BC9B").css("color", "white").css('font-weight:bold');
         });
               </script>
    <link href="../Css/activecode.css" rel="stylesheet" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
   
     <div id="topNav">当前位置：首页 > 活跃榜单<span  class=""></span></div>
  
    <div id="content">
        <div class="alert alert-warning alert-dismissable">
              <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
              <h4>榜单说明：</h4>
              <p>本排行依据商家最后回复自己源码的时间排名，商家越活跃，排名就越靠前(动态刷新，只取Top10)。
              <a class="btn btn-info" href="#" style="float:right;margin-top:-20px">我也要出现在榜单里</a></p>
            </div>
          <%--<div class="alert alert-">
         <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
              <strong><span  class="fa fa-fire"></span></strong> 
            </div>--%>

        <div class="panel panel-default" style="margin-top:-8px">
              <div class="panel-heading">
                <h3 class="panel-title">榜单</h3>
              </div>
              <div class="panel-body">
                  <div class="col-md-18" style="width:100%;">
            <div class="panel">
              <div class="tabbable tabs-left clearfix">
                <ul id="myTab1" class="nav nav-tabs">
                  <li class="active"><a href="#home3" data-toggle="tab"><span class="fa fa-upload">源码上传者</span></a></li>
                  <li class=""><a href="#profile3" data-toggle="tab"><span  class="fa fa-user-plus">用户</span></a></li>
                  
                </ul>
                <div id="myTabContent" class="tab-content">
                  <div class="tab-pane fade active in" id="home3">
                      <ul class="media-list">
                           <% foreach(string[] v in bindTop15ActiveCodesByUploaderCommentDesc()) { %>
              <li class="media" style="margin-left:104px">
                <a class="pull-left" href="#"><img class="media-object img-rounded" style="width:100px;height:100px" src="<% =v[0]%>"></a>
                <div class="media-body">
                  <h4 class="media-heading"> <a href="DetailCode.aspx?guidstr=<%=v[10] %>"><%= v[7]%> </a></h4>
                
                  <p><span style="width:335px"><span  ><img src="../Images/globals/2.png" style="width: 15px;height: 15px;margin-top: -4px;" /></span> 开发环境： <%=v[1] %> + <%=v[2] %></span><span class="cleanlinet" style="margin-right:130px"></span><span  style="float:right"><span class="badge badge-warning" style="font-size:15px;float:right"> 销售类型：<span class="badge badge-danger pull-right"> <%=v[3] %></span></span><img style="width:20px;height:20px;" src="<%= v[6] %>" /> <span class="label label-default" ><%= Fitusername( v[5].ToString()) %> </span>&nbsp;<span style="cursor:pointer" class="label label-success">Ta的源码</span>&nbsp;上传于：<%=v[4] %>&nbsp;&nbsp;</span></p>
                  <!-- Nested media object -->
                  <div class="media" style="margin-left:25px">
                    <a class="pull-left" href="#"><span class=" fa fa-comment"></span></a>
                    <div class="media-body">
                      <h4 class="media-heading" style="color:gray;font-weight:normal;font-size:14px;font-family:幼圆;font-style:initial">回复信息</h4>
                      <p>回复于：<%=v[11] %></p>
                      <p style="color:indianred"> <%=v[12] %></p>
                      <!-- Nested media object -->
                     
                    </div>
                  </div>
                  <!-- Nested media object -->
                
                </div>


              </li>
           <% } %>
            </ul>
                   </div>
                  <div class="tab-pane fade" id="profile3">
                      <div class="col-md-12" style="margin-top:-15px">
			  <div class="timeline">
                  <center><span class="fa fa-table" style="margin:0 auto;"></span></center>
				  <dl  style="margin-top:-2px">
					  <dt><span style="color:white">热议</span></dt>

                      <% foreach(string[] v in bindTop10ActiveCodes()) { %>
                      	  <dd class="<%=  timeClass( v[9].ToString())==true?"pos-right":"pos-left"  %> clearfix"  >
						  <div class="circ"></div>
						  <div class="time">评论：<%= v[4]%> 次 </div>
						  <div class="events" style="padding-bottom:10px;" onmousemove="$(this).css('background-color','#FBE889')"  onmouseleave ="$(this).css('background-color','white')">
							  <div class="pull-left">
								  <img style="width:100px;height:100px;" class="events-object img-rounded" src="<%= v[0]%> ">
							  </div>
							  <div class="events-body">
								  <h4 class="events-heading"> <a href="DetailCode.aspx?guidstr=<%=v[10] %>"><%= v[7]%> </a></h4>
                                  <p style="margin-top:5px"><span  ><img src="../Images/globals/2.png" style="width: 15px;height: 15px;margin-top: -4px;" /></span> 开发环境： <%=v[1] %> + <%=v[2] %><span style="float:right;margin-left:0px;"><img style="width:20px;height:20px;" src="<%= v[6] %>" /> <span class="label label-default" ><%= Fitusername( v[5].ToString()) %></span></span></p>
								   <p><span style="color:green;font-size:12px"><%= v[8]%></span> </p>
                                  <p style="margin-top:3px"><span><span class="badge badge-warning" style="font-size:15px"> <%=v[3] %></span></span></p>
                                 
							  </div>
						  </div>
					  </dd>

                      
                      
                     <% } %>
					 
					  <dt><span style="color:whitesmoke">评论最新</span></dt>
		    <% foreach(string[] v in bindTop10ActiveCodesByCommentNewDesc()) { %>
                      	  <dd class="<%=  timeClass( v[9].ToString())==true?"pos-right":"pos-left"  %> clearfix"  >
						  <div class="circ"></div>
						  <div class="time" style="color:#F2838F">最新回复于：<%= v[4]%> </div>
						  <div class="events">
							  <div class="pull-left">
								  <img style="width:100px;height:100px;" class="events-object img-rounded" src="<%= v[0]%> ">
							  </div>
							  <div class="events-body">
								  <h4 class="events-heading"> <a href="DetailCode.aspx?guidstr=<%=v[10] %>"><%= v[7]%> </a></h4>
                                  <p style="margin-top:5px"><span  ><img src="../Images/globals/2.png" style="width: 15px;height: 15px;margin-top: -4px;" /></span> 开发环境： <%=v[1] %> + <%=v[2] %><span style="float:right;margin-left:0px;"><img style="width:20px;height:20px;" src="<%= v[6] %>" /> <span class="label label-default" ><%= Fitusername( v[5].ToString()) %></span></span></p>
								   <p><span style="color:green;font-size:12px"><%= v[8]%></span> </p>
                                  <p style="margin-top:3px"><span><span class="badge badge-warning" style="font-size:15px"> <%=v[3] %></span></span></p>
                                 
							  </div>
						  </div>
					  </dd>

                      
                      
                     <% } %>

				  </dl>
			  </div>
		  </div>
                  </div>
                 
                </div>
              </div>
            </div>
          </div>
                
              </div>
            </div>
    </div>
    <script>
        $('dd').mouseover(function () {
            //alert('s');
            $(this).attr('background-color', '#dcd3d3');
        });

        $('dd').mouseleave(function () {
            //$(this).removeClass('addbg');
            $(this).attr('background-color', 'white');
        });
    </script>
    <style>

        addbg{
            background-color:#dcd3d3;
            /*//font-weight :bold*/
        }

        .bor{
          //  bor
        }
    </style>
</asp:Content>
